package cn.edu.ctbu.demo2.service.impl;


import cn.edu.ctbu.demo2.domain.User;
import cn.edu.ctbu.demo2.repository.StudentRepository;
import cn.edu.ctbu.demo2.repository.UserRepository;
import cn.edu.ctbu.demo2.service.StudentService;
import cn.edu.ctbu.demo2.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserimplService implements UserService {
    @Autowired
    private UserRepository userRepository;

    @Override
    public List<User>findByUserAndPassword(String user, String password){

        return userRepository.findByUserAndPassword(user,password);
    }
}
